<?php
/**
 * 
 * @author Iain Edminster
 */
class Bliss_DataReport_Form_Options extends Zend_Form_SubForm
{
	/**
	 * Class constructor
	 *
	 * @param Bliss_DataReport $report
	 */
	public function  __construct(Bliss_DataReport $report)
	{
		parent::__construct();

		$options	= $report->getParam('options');
		$this->addElements(array(
			new Zend_Form_Element_Select('results', array(
				'label'	=> 'Number of Results',
				'value'	=> $options->results,
				'multiOptions'	=> array(
					'all'	=> 'All Results',
					'50'	=> '50',
					'100'	=> '100',
					'150'	=> '150'
				)
			)),
			new Zend_Form_Element_Submit('submit_alter', 'Update Report')
		));
	}
}
?>
